package com.firebird.app.fekpsl.mvp.sword.rank

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss

/**
 * Created by firebird on 2018/4/21.
 */
class LevelScoreWorldRankPresenter : BasePresenter<LevelScoreWorldRankContract.Model, LevelScoreWorldRankContract.View>(), LevelScoreWorldRankContract.Presenter {

    override fun createModel(): LevelScoreWorldRankContract.Model? = LevelScoreWorldRankModel()

    override fun getLevelScoreWorldRankList(pageNo: Int) {
        mModel?.getLevelScoreWorldRankList(pageNo)?.ss(mModel, mView) {
            mView?.showLevelScoreWorldRankList(it.data)
        }
    }

}